' |Info|
' Written by Bryan O'Connell, February 2013
' Purpose: Add two integers together and prints the result to the console.
'
' Sample: add.vbs [NUM_A] [NUM_B]
'
' Params:
'  [NUM_A] & [NUM_B]: The two numbers to add together.
'
' NOTE: You can pass in non-integer numbers as well, but they will be converted
' to integers before the addition is performed.
'
' |Info| 

On Error Resume Next
Num1 = CInt(WScript.Arguments(0))
Num2 = CInt(WScript.Arguments(1))
Total = Num1 + Num2
If Err.Number <>0 Then
	WScript.Echo "Error: " & Err.Description
	Err.Clear
Else
	WScript.Echo "Sum = " & total
End If

WScript.Echo "Press key to quit ... "
x = WScript.StdIn.Read(1)
